Module-level declarations
Types
Link copied to clipboard
struct all_my_placeables_dto
Link copied to clipboard
struct place_cell_action_dto
Link copied to clipboard
struct place_plot_action_dto
Link copied to clipboard
struct placeable_dto
Link copied to clipboard
struct placeable_with_meta
Link copied to clipboard
object placeables_config
Link copied to clipboard
entity placed_element
Functions
Link copied to clipboard
function _pack_all_my_placeables_dto(account_id: byte_array, original_ids: list<byte_array>, include_placed: boolean): list<all_my_placeables_dto>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function _previously_placed_by(griddable_id: integer, original_id: byte_array, account_id: byte_array): boolean
Link copied to clipboard
function all_used_cells(elements: list<placeable_with_meta>, exclude: list<location>): set<location>
Link copied to clipboard
@extend(check_original_placed_on_grid) function check_original_placed_on_grid(griddable_id: integer, original_id: byte_array, location: location): map<text, boolean>
Link copied to clipboard
@extend(check_original_previously_placed_by) function check_original_previously_placed_by(griddable_id: integer, original_id: byte_array, account_id: byte_array): boolean
Link copied to clipboard
function get_placed_element(current_location: location?, plot_id: integer, original_id: byte_array): placed_element?
Link copied to clipboard
function is_owner_or_previously_placed(griddable_id: integer, original_id: byte_array, account_id: byte_array): boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function place_element_with_time(account_id: byte_array, proximity_radius: integer, original_id: byte_array, current_location: location?, plot_id: integer, to: place?, timestamp: integer)
Link copied to clipboard
function place_elements_with_time(place_plot_action_dto: place_plot_action_dto, account_id: byte_array, timestamp: integer)
Link copied to clipboard
@extend(clear_grid_area) function remove_placeables_from_cells(cells_to_clear: set<location>, plot_id: integer)
Link copied to clipboard
@extend(require_occupancy_based_on_locations) function require_occupancy_based_on_locations(griddable: instance, locations: set<location>, optional_params: map<text, byte_array>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function update_fungible_placeable_prototype(name: text, relative_locations: list<location>, prototype: prototype)
Link copied to clipboard
function used_cells_for_element(relative_locations: list<location>, grid_rotation: grid_rotation, axis_x: integer, axis_y: integer): list<location>
Queries
Link copied to clipboard
@mount("placeables.all_my_placeables")
query all_my_placeables(account_id: byte_array, take: integer, skip: integer): list<all_my_placeables_dto>
Link copied to clipboard
@mount("placeables.all_placeables_at")
query all_placeables_at(plot_id: integer): list<placeable_dto>
Link copied to clipboard
@mount("placeables.all_unplaced_placeables")
query all_unplaced_placeables(account_id: byte_array, take: integer, skip: integer): list<all_my_placeables_dto>
Link copied to clipboard
@mount("placeables.get_global_placeables_of_interface")
query get_global_placeables_of_interface(interface: text): list<(original_id: byte_array, name: text, meta: placeable_meta, grid_rotation: grid_rotation, location: location, integer?, account_id: byte_array)>
Link copied to clipboard
@mount("placeables.get_placeables_configs")
query get_placeables_configs(): (enabled: boolean, placing_rate: integer)
Link copied to clipboard
@mount("placeables.placeables_at")
query placeables_at(plot_id: integer, account_id: byte_array): list<placeable_dto>
Operations
Link copied to clipboard
@mount("placeables.place_elements")
operation place_elements(place_plot_action_dto: place_plot_action_dto, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("placeables.place_elements_as_admin")
operation place_elements_as_admin(place_plot_action_dto: place_plot_action_dto, account_id: byte_array)
Link copied to clipboard
@mount("placeables.register_animal")
operation register_animal(name: text, interface: text, relative_locations: list<location>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@mount("placeables.set_global_placeables_parameters")
operation set_global_placeables_parameters(enabled: boolean, placing_rate_millis: integer)
Link copied to clipboard
Link copied to clipboard
@mount("placeables.upsert_fungible_placeable")
operation upsert_fungible_placeable(name: text, interface: text, relative_locations: list<location>)